package xyz.riceball.develop.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.riceball.framework.core.bean.BaseDatePO;

import javax.validation.constraints.NotBlank;

/**
 * 字典表 数据库实体
 *
 * @author xiaovcloud
 * @since 2022-07-03 11:50:40
 */
@ApiModel("字典表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_rb_dictionary")
public class DictionaryPO extends BaseDatePO<DictionaryPO> {
	/**
	 * 主键
	 */
	@TableId
	@ApiModelProperty("主键")
	private String id;
	/**
	 * 代码
	 */
	@TableField(value = "code")
	@ApiModelProperty("字典编码")
	@NotBlank(message = "编码不能为空")
	private String code;
	/**
	 * 值
	 */
	@TableField(value = "value")
	@ApiModelProperty("值")
	private Integer value;
	/**
	 * 名称
	 */
	@TableField(value = "`option`")
	@ApiModelProperty("字典名称")
	@NotBlank(message = "字典名称不能为空")
	private String option;
	/**
	 * 字典级别 1系统内置2用户新增
	 */
	@TableField(value = "level")
	@ApiModelProperty("字典级别 1系统内置2用户新增")
	private Integer level;
	/**
	 * 描述
	 */
	@TableField(value = "remark")
	@ApiModelProperty("描述")
	private String remark;
	/**
	 * 排序
	 */
	@TableField(value = "weigh")
	@ApiModelProperty("排序")
	private Integer weigh;

}